package com.liesheng.haylou.net;

import com.liesheng.haylou.utils.FireGsonUtil;

import java.util.Map;

import okhttp3.MediaType;
import okhttp3.RequestBody;

/**
 * Date:2019/12/13
 * <p>
 * Author:wuzhiguang
 * <p>
 * Description:
 */
public class HttpRequest {

    public static RequestBody getBody(Map map) {

        //加公共参数
        map.put("deviceType", "2");
        return RequestBody.create(MediaType.parse("application/json; charset=utf-8"), FireGsonUtil.mapToJson(map));

    }
}
